import request from '@/utils/request'

// 查询商户信息-发票列表
export function listInvoice(query) {
  return request({
    url: '/business/admin/merchantInvoice/list',
    method: 'get',
    params: query
  })
}

// 查询商户信息-发票详细
export function getInvoice(id) {
  return request({
    url: '/business/admin/merchantInvoice/' + id,
    method: 'get'
  })
}

// 新增商户信息-发票
export function addInvoice(data) {
  return request({
    url: '/business/admin/merchantInvoice',
    method: 'post',
    data: data
  })
}

// 修改商户信息-发票
export function updateInvoice(data) {
  return request({
    url: '/business/admin/merchantInvoice',
    method: 'put',
    data: data
  })
}

// 删除商户信息-发票
export function delInvoice(id) {
  return request({
    url: '/business/admin/merchantInvoice/' + id,
    method: 'delete'
  })
}
